package com.woniuxy.run.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.run.user.entity.Cart;
import com.woniuxy.run.user.mapper.CartMapper;
import com.woniuxy.run.user.service.CartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 
 * @since 2021-03-23
 */
@Service
public class CartServiceImpl extends ServiceImpl<CartMapper, Cart> implements CartService {

    @Autowired
    private CartMapper cartMapper;

    @Override
    public boolean del(int userid, List<Integer> dishids) {
        return cartMapper.del(userid, dishids);
    }

    @Override
    public List<Cart> all() {
        return cartMapper.all();
    }
}
